#include "BoxCoreGenerator.h"

BoxCoreGenerator::BoxCoreGenerator()
	: LinearCoreGenerator (false, 3)
{

}

Core< float > BoxCoreGenerator::getCore (int size, int direction)
{
	if (size != -1)
		setSize (size);
	Core< float > core (QSize (getSize (), getSize ()));
	for (int v = 0; v < getSize (); ++v)
		for (int u = 0; u < getSize (); ++u)
			core(v, u) = 1.0f;
	return core;
}
